<?php
/**
 * Created by PhpStorm OF Administrator.
 * User: YUYI
 * Date: 2018/7/20 0020
 * Time: 上午 10:06
 * Administrator
 */

namespace app\api\controller;


use app\common\util\HuabanPic;
use app\common\util\ReturnMsgUtil;

class Hua //extends Base
{
    use HuabanPic,ReturnMsgUtil;
    public function getPicList(){
        $page = input('page')?:1;
        $size = input('size')?:10;
        $query = input('query');
        if (!$query){
            return $this->errorInfo('无权访问');
        }
        $imgs = $this->getPics($query,$page,$size);
        if (!$imgs){
            return $this->errorInfo('暂无数据');
        }
        return $this->successInfo('成功获取信息',$imgs);
    }
}